public function isKnown() {
return $this->exists() || $this->isAlwaysKnown();
}
+
+ /**
+ * Is this in a namespace that allows actual pages?
+ *
+ * @return \type{\bool} TRUE or FALSE
+ */
+ public function canExist() {
+ return $this->mNamespace >= 0 && $this->mNamespace != NS_MEDIA;
+ }
/**
* Update page_touched timestamps and send squid purge messages for
$title = Title::newFromText( $verified );
- if( !is_null( $title ) && $title->equals( $current ) ) {
+ if( !is_null( $title ) && $title->equals( $current ) && $title->canExist() ) {
return $this->progress( 0 ); // all is fine
}